package com.example.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Knife4jConfig {
    public GroupedOpenApi adminApi(){
        return GroupedOpenApi.builder().group("admin-api").pathsToMatch("/admin/**").build();
    }
    public OpenAPI customOpenApi(){
        return new OpenAPI().info(new Info().title("omega甄选接口文档").version("1.0").description("接口文档").contact(new Contact().name("马海啸")));
    }
}
